﻿

function onOpen() {
 TextBoxURL.value = options.getValue ("URL");
TextBoxRefreshRate.value = options.getValue ("RefreshRate")/1000;
comboboxResolution.value = options.getValue ("Resolution"); 
checkboxFlipImage.value = options.getValue ("FlipImage"); 
}

function onOk()
{
options.putValue ('URL', TextBoxURL.value);
options.putValue ('RefreshRate', TextBoxRefreshRate.value * 1000);
options.putValue ('Resolution', comboboxResolution.value);
options.putValue ('FlipImage', checkboxFlipImage.value?true:false);
options.putValue ('LastChange', true);
}

function onCancel()
{}